package com.woniuxy.Dao.person.impl;

import com.woniuxy.Dao.person.Person;

import java.util.List;

public class Chinese implements Person {
    String name;
    List wife;
    Wife wifes;
    List<Wife> wifeList;
    /*public Chinese() {
        System.out.println("中国人无参构造成功");
    }*/

    public void setWifeList(List<Wife> wifeList) {
        this.wifeList = wifeList;
    }

    public Chinese(String name, List wife, Wife wifes, List<Wife> wifeList) {
        this.name = name;
        this.wife = wife;
        this.wifes = wifes;
        this.wifeList = wifeList;
    }

    public Chinese(String name, List wife) {
        this.name = name;
        this.wife = wife;
    }

    public Chinese(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", wife=" + wife +
                ", wifes=" + wifes +
                ", wifeList=" + wifeList +
                '}';
    }

    @Override
    public void eat(){
        System.out.println("老雷爱吃火锅底料");
    }
}
